package com.woniu.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.server.dto.ApplicationProjectDto;
import com.woniu.server.pojo.ApplicationProduct;

import java.util.List;

/**
* @author a
* @description 针对表【application_product(申请产品详细表)】的数据库操作Service
* @createDate 2024-11-23 17:46:19
*/
public interface ApplicationProductService extends IService<ApplicationProduct> {

    /**
     * 根据申请表的编号来生成对应的申请产品详细表
     * @Author hht
     * @Date Create by 2024/11/24 12:54
     */
    void addApplicationProductByApplicationCode(String projectApplicationCode,
                                                String applicationCode,
                                                List<ApplicationProjectDto> projectDtoList,
                                                String processInstanceId);

    List<ApplicationProduct> queryApplicationProductByApplicationCode(String projectApplicationCode);

    ApplicationProduct queryApplicationProductByApplicationProductCode(String applicationProductCode);

    void updateStatusByCode(ApplicationProduct applicationProduct);

    void updateProductCodeByCode(ApplicationProduct applicationProduct1);
}
